/**
 * Access (ABM), 2017-2020, 单创.
 */
package com.tengju.user.application.archives.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import javax.validation.constraints.NotEmpty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;


@Data
@ApiModel(value = "UserRegisterDTO", description = "用户注册参数对象")
public class UserRegisterDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("用户账号")
    @NotEmpty(message = "用户账号不能为空")
    @Length(min = 1, max = 50)
    private String username;

    @ApiModelProperty("登录密码")
    @NotEmpty(message = "登录密码不能为空")
    @Length(min = 1, max = 50)
    private String pwd;

    @ApiModelProperty("用户姓名")
    @NotEmpty(message = "用户姓名不能为空")
    @Length(min = 1, max = 100)
    private String realName;

}
